package com.example.demo.buessiness.user.interfaces;

import com.example.demo.buessiness.user.model.dto.UserRequest;
import com.example.demo.buessiness.user.model.dto.UserResponse;
import com.example.demo.commons.jpa.PageableService;
import msa.common.model.PojoCover;
import msa.common.model.ResultModel;

import java.util.List;


public interface IUserService extends PageableService, PojoCover<UserRequest, UserResponse> {

    ResultModel addUser(UserRequest clientRequest);

    ResultModel updateUser(UserRequest clientRequest);

    ResultModel deleteUser(Long id);

    ResultModel findById(Long id);

    List<UserResponse> findAll();

    void updateUsernameById(String username,Long id);

    //登录验证
    List<UserResponse> logByUsername(String username,String password);


    //查询用户名
    List<UserResponse> findByUsername(String department);



}
